home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / Universal Viewer / UniversalViewer.exe / Plugins / Syn2 / HL / Expressions.lcf < prev    next >
Encoding:
Text File  |  2007-12-12  |  5.6 KB  |  236 lines

  1. object SyntAnal41: TLibSyntAnalyzer
  2.   Formats = <
  3.     item
  4.       DisplayName = 'Marked block'
  5.       Font.Charset = DEFAULT_CHARSET
  6.       Font.Color = clHighlightText
  7.       Font.Height = -13
  8.       Font.Name = 'Courier New'
  9.       Font.Style = []
  10.       BgColor = clHighlight
  11.       FormatType = ftColor
  12.     end
  13.     item
  14.       DisplayName = 'Default'
  15.       Font.Charset = RUSSIAN_CHARSET
  16.       Font.Color = clWindowText
  17.       Font.Height = -13
  18.       Font.Name = 'Courier New'
  19.       Font.Style = []
  20.       FormatType = ftCustomFont
  21.     end
  22.     item
  23.       DisplayName = 'Symbol'
  24.       Font.Charset = RUSSIAN_CHARSET
  25.       Font.Color = clMaroon
  26.       Font.Height = -13
  27.       Font.Name = 'Courier New'
  28.       Font.Style = [fsBold]
  29.     end
  30.     item
  31.       DisplayName = 'Float'
  32.       Font.Charset = DEFAULT_CHARSET
  33.       Font.Color = clNavy
  34.       Font.Height = -13
  35.       Font.Name = 'Courier New'
  36.       Font.Style = [fsBold]
  37.     end
  38.     item
  39.       DisplayName = 'Integer'
  40.       Font.Charset = RUSSIAN_CHARSET
  41.       Font.Color = clBlack
  42.       Font.Height = -13
  43.       Font.Name = 'Courier New'
  44.       Font.Style = [fsBold]
  45.     end
  46.     item
  47.       DisplayName = 'String'
  48.       Font.Charset = RUSSIAN_CHARSET
  49.       Font.Color = clBlue
  50.       Font.Height = -13
  51.       Font.Name = 'Courier New'
  52.       Font.Style = []
  53.     end
  54.     item
  55.       DisplayName = 'Identifier'
  56.       Font.Charset = RUSSIAN_CHARSET
  57.       Font.Color = clWindowText
  58.       Font.Height = -13
  59.       Font.Name = 'Courier New'
  60.       Font.Style = []
  61.     end
  62.     item
  63.       DisplayName = 'Reserved word'
  64.       Font.Charset = RUSSIAN_CHARSET
  65.       Font.Color = clGreen
  66.       Font.Height = -13
  67.       Font.Name = 'Courier New'
  68.       Font.Style = [fsBold, fsUnderline]
  69.     end
  70.     item
  71.       DisplayName = 'Comment'
  72.       Font.Charset = RUSSIAN_CHARSET
  73.       Font.Color = clRed
  74.       Font.Height = -13
  75.       Font.Name = 'Courier New'
  76.       Font.Style = [fsBold]
  77.     end
  78.     item
  79.       DisplayName = 'Current block'
  80.       Font.Charset = RUSSIAN_CHARSET
  81.       Font.Color = clMaroon
  82.       Font.Height = -13
  83.       Font.Name = 'Courier New'
  84.       Font.Style = [fsBold]
  85.       BgColor = 13369046
  86.       FormatType = ftColor
  87.       BorderTypeLeft = blSolid
  88.       BorderColorLeft = clGray
  89.       BorderTypeTop = blSolid
  90.       BorderColorTop = clGray
  91.       BorderTypeRight = blSolid
  92.       BorderColorRight = clGray
  93.       BorderTypeBottom = blSolid
  94.       BorderColorBottom = clGray
  95.     end>
  96.   TokenRules = <
  97.     item
  98.       DisplayName = 'Any name'
  99.       StyleName = 'Identifier'
  100.       TokenType = 2
  101.       Expression = '[a-z_]\w*'
  102.       ColumnFrom = 0
  103.       ColumnTo = 0
  104.     end
  105.     item
  106.       DisplayName = 'String'
  107.       StyleName = 'String'
  108.       TokenType = 4
  109.       Expression = #39'.*?('#39'|$)'#13#10
  110.       ColumnFrom = 0
  111.       ColumnTo = 0
  112.     end
  113.     item
  114.       DisplayName = 'Float'
  115.       StyleName = 'Float'
  116.       TokenType = 6
  117.       Expression = 
  118.         '#with exp. dot is optional '#13#10'\d+ \.? \d+ e [\+\-]? \d+ |'#13#10'#witho' +
  119.         'ut exp. dot is required'#13#10'\d+ \. \d+'
  120.       ColumnFrom = 0
  121.       ColumnTo = 0
  122.     end
  123.     item
  124.       DisplayName = 'Integer'
  125.       StyleName = 'Integer'
  126.       TokenType = 5
  127.       Expression = '\d+'
  128.       ColumnFrom = 0
  129.       ColumnTo = 0
  130.     end
  131.     item
  132.       DisplayName = 'Comment 1'
  133.       StyleName = 'Comment'
  134.       TokenType = 1
  135.       Expression = '(?s)\(\*.*?(\*\)|\Z)'
  136.       ColumnFrom = 0
  137.       ColumnTo = 0
  138.     end
  139.     item
  140.       DisplayName = 'Comment 2'
  141.       StyleName = 'Comment'
  142.       TokenType = 1
  143.       Expression = '(?s)\{.*?(\}|\Z)'#13#10
  144.       ColumnFrom = 0
  145.       ColumnTo = 0
  146.     end
  147.     item
  148.       DisplayName = 'Comment 3'
  149.       StyleName = 'Comment'
  150.       AlwaysEnabled = True
  151.       TokenType = 1
  152.       Expression = '//.*'
  153.       ColumnFrom = 0
  154.       ColumnTo = 0
  155.     end
  156.     item
  157.       DisplayName = 'HEX'
  158.       StyleName = 'Integer'
  159.       TokenType = 7
  160.       Expression = '\$[a-f\d]+'
  161.       ColumnFrom = 0
  162.       ColumnTo = 0
  163.     end
  164.     item
  165.       DisplayName = 'Symbol'
  166.       StyleName = 'Symbol'
  167.       TokenType = 3
  168.       Expression = '[/\*,\.;:\(\)=<>\+\-\[\]]'
  169.       ColumnFrom = 0
  170.       ColumnTo = 0
  171.     end>
  172.   BlockRules = <
  173.     item
  174.       DisplayName = 'Tag/Alarm'
  175.       StyleName = 'Reserved word'
  176.       BlockType = btTagDetect
  177.       ConditionList = <
  178.         item
  179.           TagList.Strings = (
  180.             'alarm'
  181.             'tag')
  182.           TokenTypes = 4
  183.           IgnoreCase = True
  184.         end>
  185.       HighlightPos = cpAny
  186.       IgnoreAsParent = False
  187.     end
  188.     item
  189.       DisplayName = '('
  190.       StyleName = 'Current block'
  191.       ConditionList = <
  192.         item
  193.           TagList.Strings = (
  194.             '(')
  195.           TokenTypes = 8
  196.         end>
  197.       BlockEnd = ')'
  198.       NotCollapsed = True
  199.       DisplayInTree = False
  200.       DynHighlight = dhBound
  201.       HighlightPos = cpRange
  202.       DynSelectMin = True
  203.       IgnoreAsParent = False
  204.     end
  205.     item
  206.       DisplayName = ')'
  207.       BlockType = btRangeEnd
  208.       ConditionList = <
  209.         item
  210.           TagList.Strings = (
  211.             ')')
  212.           TokenTypes = 8
  213.         end>
  214.       HighlightPos = cpAny
  215.       IgnoreAsParent = False
  216.     end>
  217.   CodeTemplates = <>
  218.   SubAnalyzers = <>
  219.   SampleText.Strings = (
  220.     'Tag('#39'Tag1'#39') + (0.5 * Tag(17) - 67)')
  221.   TokenTypeNames.Strings = (
  222.     'Unknown'
  223.     'Comment'
  224.     'Identifier'
  225.     'Symbol'
  226.     'String'
  227.     'Integer const'
  228.     'Float const'
  229.     'Hex const'
  230.     'Char const'
  231.     'Preprocessor')
  232.   MarkedBlockStyle = 'Marked block'
  233.   LexerName = 'Expressions'
  234.   Internal = True
  235. end
  236.